package com.ktjiaoyu.service;

import com.ktjiaoyu.entity.Flower;
import com.ktjiaoyu.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlowerService {
    //条件查询分页
    public Page<Flower> pageList(@Param("flower") Flower flower,
                                 @Param("pageNo") Integer pageNo,
                                 @Param("pageSize") Integer pageSize);

    public boolean insert(Flower flower);

    public boolean update(Flower flower);

    public boolean delete(@Param("flowerId") Integer flowerId);

    //详情
    public Flower selectId(@Param("flowerId") Integer flowerId);

    //查重
    public Flower selectName(@Param("flowerName") String flowerName);
}
